package com.gupaoedu.spring.pattern.proxy.custom;

import com.gupaoedu.spring.pattern.proxy.jdk.XieMu;
import com.gupaoedu.spring.pattern.proxy.staticed.Person;

public class CustomProxyTest {

        public static void main(String[] args) {


            try {
                Person obj = (Person)new CustomMeiPo().getInstance(new XieMu());
                System.out.println(obj.getClass());
                obj.findLove();
            } catch (Exception e) {
                e.printStackTrace();
            }

        }
}
